Skip to content

feat(ws): add ws endpoint - #1015

Draft
dido18 wants to merge 3 commits into
mainfrom
ws-endpoint
Draft

dido18 wants to merge 3 commits into
mainfrom
ws-endpoint

Conversation

@dido18

@dido18 dido18 commented Jan 28, 2025

Copy link
Copy Markdown
Contributor

Motivation

Currently, the agent seems to be using https://github.com/googollee/go-socket.io which (besides being archived) implements the v1.4 of Socket.IO client (it looks like it's compatible with 2.x as well for some reason).

Now, the current state of the JS library for communicating with the agent is pretty bad from multiple points of view (from a lack of documentation to a lack of types, to an annoying number of bugs, issues and gotchas in the current implementation).

Now, the issue is that in order to communicate with the agent we're forced to use the v2 implementation (again, because server v2 seems to be working somehow, otherwise we'd have to go v1.x - see https://socket.io/docs/v4/client-installation/#version-compatibility), and that means our hands are tied in various places:

  • What kind of change does this PR introduce?

Feature

  • What is the current behavior?
  • What is the new behavior?
  • Does this PR introduce a breaking change?
  • Other information:

@codecov-commenter

codecov-commenter commented Jan 28, 2025 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 0% with 59 lines in your changes missing coverage. Please review.
✅ Project coverage is 19.78%. Comparing base (1b94ccc) to head (3e691cd).
⚠️ Report is 14 commits behind head on main.

Files with missing lines Patch % Lines
main.go 0.00% 59 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1015      +/-   ##
==========================================
- Coverage   20.14%   19.78%   -0.36%     
==========================================
  Files          42       42              
  Lines        3222     3280      +58     
==========================================
  Hits          649      649              
- Misses       2488     2546      +58     
  Partials       85       85              
Flag Coverage Δ
unit 19.78% <0.00%> (-0.36%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@per1234 per1234 added type: enhancement Proposed improvement topic: code Related to content of the project itself labels Jan 29, 2025
@CLAassistant

CLAassistant commented Mar 18, 2026 •

Copy link
Copy Markdown

CLA assistant check
All committers have signed the CLA.

@arduino arduino deleted a comment from CLAassistant Mar 19, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

topic: code Related to content of the project itself type: enhancement Proposed improvement

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants